import request from '@/service/index.js'

export const queryFeedbackList = (type, status, startTime, endTime, keyword, page, pageSize) => {
  return request.get('/feedback/list', {
    params: {
      type,
      status,
      startTime,
      endTime,
      keyword,
      page,
      pageSize,
    },
  })
}
export const queryFeedbackDetail = (feedbackId) => {
  return request.get('/feedback/detail', {
    params: { feedbackId },
  })
}

export const handleFeedback = (data) => {
  return request.post('/feedback', data)
}
